/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */


var array1 = new Array(1, 2,[1,2]);
var array2 = new Array(3, 4);
var result = array1.map(function(i){
    return array2.map(function(j){
        return i + j;
    });
});
var result1 = [1, 2].map(function(i) {
    return [3, 4].map(function(j) {
        return i + j;
    });
});
console.log(result);
console.log(result1);